// 角色相关API
import request from '@/utils/request'

// 获取角色列表
export const RoleList = (data) => {
  return request({
    url: '/api/User/RoleList',
    method: 'post',
    data
  })
}

// 获取角色详情
export const RoleDetail = (data) => {
  return request({
    url: '/api/User/RoleDetail',
    method: 'post',
    data
  })
}

// 提交角色信息
export const SubmitRole = (data) => {
  return request({
    url: '/api/User/SubmitRole',
    method: 'post',
    data
  })
}

// 启用或禁用角色
export const UpdateRoleStatus = (data) => {
  return request({
    url: "/api/User/UpdateRoleStatus",
    method: 'post',
    data
  })
}

// 批量删除角色信息
export const DelRole = (data) => {
  return request({
    url: "/api/User/DelRole",
    method: 'post',
    data
  })
}
